package com.junluan.demo1;

import java.util.Scanner;

public class DemoCode1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        System.out.println("您输入的整数是：" + a);
         int ge = a % 10;
        int shi = a / 10 % 10;
        int bai = a / 100 % 10;
        System.out.println("该数的个位是：" + ge);
        System.out.println("该数的十位是：" + shi);
        System.out.println("该数的百位是：" + bai);


    }
}
